﻿<%@ Page Title="Log In" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="BestBuy.Account.Login" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="wrapper-content">
        <h2>
            Login
        </h2>
        <p>
            Enter your username and password.
            <asp:HyperLink ID="RegisterHyperLink" runat="server" EnableViewState="false">Register now</asp:HyperLink>
            If you do not already have an account.
        </p>
        <asp:Login ID="LoginUser" runat="server" EnableViewState="false" RenderOuterTable="false">
            <LayoutTemplate>
                <div class="form-horizontal">
                    <asp:ValidationSummary ID="LoginUserValidationSummary" runat="server" CssClass="alert alert-error"
                        ValidationGroup="LoginUserValidationGroup" />
                    <fieldset class="login">
                        <div class="control-group">
                            <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" CssClass="control-label">Username:</asp:Label>
                            <div class="controls">
                                <asp:TextBox ID="UserName" runat="server" CssClass="textEntry"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName"
                                    CssClass="failureNotification" ErrorMessage="username." ToolTip="username."
                                    ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                            </div>
                        </div>
                        <div class="control-group">
                            <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" CssClass="control-label">Password:</asp:Label>
                            <div class="controls">
                                <asp:TextBox ID="Password" runat="server" CssClass="passwordEntry" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password"
                                    CssClass="failureNotification" ErrorMessage="Password." ToolTip="Password."
                                    ValidationGroup="LoginUserValidationGroup">*</asp:RequiredFieldValidator>
                            </div>
                        </div>
                        <div class="control-group">
                            <div class="controls">
                                <label class="checkbox">
                                    <asp:CheckBox ID="RememberMe" runat="server" />
                                    Remember account.</label>
                                <%--<asp:Label ID="RememberMeLabel" runat="server" AssociatedControlID="RememberMe" CssClass="checkbox">Ghi nhớ tài khoản</asp:Label>--%>
                                <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Login"
                                    ValidationGroup="LoginUserValidationGroup" CssClass="btn btn-primary" />
                            </div>
                        </div>
                    </fieldset>
                </div>
            </LayoutTemplate>
        </asp:Login>
    </div>
</asp:Content>
